-- background: 15301 from stack: in.0-2 -- bmap block id: 15851 -- flags: 0000 -- background id: 0 -- name: Advanced Uses ----- HyperTalk script ----- -- This handler goes back to the last card if the user clicks -- outside the "window". on mouseUp if "field" is not in the target and "button" is not in the target then goBack end mouseUp -- This handler stores the name of the last card. on goBack go cd "What are some a" of stack "Intro to HyperCard 2.0" end goBack -- part 1 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=65 top=85 right=299 bottom=410 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 174 -- text size: 14 -- style flags: 0 -- line height: 15 -- part name: -- part 5 (field) -- low flags: 81 -- high flags: 0007 -- rect: left=262 top=117 right=179 bottom=350 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 174 -- text size: 10 -- style flags: 0 -- line height: 12 -- part name: wordScreen -- part 6 (button) -- low flags: 80 -- high flags: 0001 -- rect: left=334 top=111 right=185 bottom=358 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: scrollMask -- part 4 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=47 top=59 right=306 bottom=425 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: wind ----- HyperTalk script ----- on mouseUp end mouseUp -- part 3 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=54 top=61 right=76 bottom=74 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: closebox ----- HyperTalk script ----- -- This handler sets the cursor to simulate a real closeBox. on mouseEnter set the cursor to "arrow" end mouseEnter -- This handler sets the cursor to simulate a real closeBox. on mouseWithIn repeat until the mouseloc is not within the rect of me or the mouse is down set the cursor to "arrow" end repeat if the mouse is down then send mouseUp to me end if end mouseWithIn -- This handler simulates clicking in a closeBox. on mouseUp set the icon of me to 7937 wait 15 set the icon of me to 0 lock screen goBack unlock screen end mouseUp